package com.qinhai.webcs.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @ClassName BackWebConfig
 * @Deacription
 * @Author qinhai
 * @Date 2021/4/20 14:27
 * @Version 1.0
 **/
@Configuration
public class BackWebConfig implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        //E:\java\javaproject\webcs\src\main\resources\static
        String backPath = "E:\\java\\javaproject\\webcs\\src\\main\\resources\\static\\back\\";
        registry.addResourceHandler("/back/**").addResourceLocations("file:" + backPath);
    }
}
